package com.hu.chat.controller;

import com.hu.chat.config.WebInterceptor;
import com.hu.chat.service.FriendService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 功能描述：
 *
 * @Author huyouzhong
 * @Date 2024/1/3 16:08
 */
@RestController
@RequestMapping("/friend")
public class FriendController {

    @Resource
    FriendService friendService;

    // 通知好友上线
    @GetMapping("/online")
    public void online() {
        friendService.online(WebInterceptor.getUserId());
    }

}
